<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
//        var sum = new Function("a = 2, b = 3, c = a+b","console.log(c);" );
//        sum();
// 传统求 max 的方法
     /*function max(a,b,c) {
         res = a > b ? a : b;
         ma = res > c ? res : c;
         return ma;
     }
     alert(max(1,112,3));*/
    var max = Function ('a','b','c','res = a > b ? a : b;ma = res > c ? res : c;return ma;');
    alert(max(19999999999999,14444444412,3));
    </script>
</head>
<body>

</body>
</html>